home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-24 | 1.9 KB | 94 lines | [TEXT/MPS ] |
- ;
- ; File: Scrap.a
- ;
- ; Contains: Scrap Manager Interfaces.
- ;
- ; Version: Technology: System 7.5
- ; Package: Universal Interfaces 2.2 in “MPW” on ETO #20
- ;
- ; Copyright: © 1984-1995 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- ; stack. Include the file and version information (from above)
- ; in the problem description and send to:
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__SCRAP__') = 'UNDEFINED' THEN
- __SCRAP__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
- ScrapStuff RECORD 0
- scrapSize ds.l 1 ; offset: $0 (0)
- scrapHandle ds.l 1 ; offset: $4 (4)
- scrapCount ds.w 1 ; offset: $8 (8)
- scrapState ds.w 1 ; offset: $A (10)
- scrapName ds.l 1 ; offset: $C (12)
- sizeof EQU * ; size: $10 (16)
- ENDR
-
- ; typedef struct ScrapStuff ScrapStuff
- ; typedef ScrapStuff *PScrapStuff, *ScrapStuffPtr
- ;
- ; pascal ScrapStuffPtr InfoScrap(void)
- ;
- IF ¬ GENERATINGCFM THEN
- _InfoScrap: OPWORD $A9F9
- ELSE
- IMPORT_CFM_FUNCTION InfoScrap
- ENDIF
-
- ;
- ; pascal long UnloadScrap(void)
- ;
- IF ¬ GENERATINGCFM THEN
- _UnloadScrap: OPWORD $A9FA
- ELSE
- IMPORT_CFM_FUNCTION UnloadScrap
- ENDIF
-
- ;
- ; pascal long LoadScrap(void)
- ;
- IF ¬ GENERATINGCFM THEN
- _LoadScrap: OPWORD $A9FB
- ELSE
- IMPORT_CFM_FUNCTION LoadScrap
- ENDIF
-
- ;
- ; pascal long GetScrap(Handle hDest, ResType theType, long *offset)
- ;
- IF ¬ GENERATINGCFM THEN
- _GetScrap: OPWORD $A9FD
- ELSE
- IMPORT_CFM_FUNCTION GetScrap
- ENDIF
-
- ;
- ; pascal long ZeroScrap(void)
- ;
- IF ¬ GENERATINGCFM THEN
- _ZeroScrap: OPWORD $A9FC
- ELSE
- IMPORT_CFM_FUNCTION ZeroScrap
- ENDIF
-
- ;
- ; pascal long PutScrap(long length, ResType theType, void *source)
- ;
- IF ¬ GENERATINGCFM THEN
- _PutScrap: OPWORD $A9FE
- ELSE
- IMPORT_CFM_FUNCTION PutScrap
- ENDIF
-
- ENDIF ; __SCRAP__
-